#!/bin/bash

dateStr=$(date "+%Y%m%d")
echo "---->${dateStr}"
/opt/lagou/servers/hive/bin/hive -e "use default; insert into table user_info select count(distinct id) as active_num, dt as dateStr from user_clicks where dt =$dateStr group by dt"
